import { http } from "@/utils/http";

export const GetMYRTOOther = (
	data: Eps.BettingService.GetMYRTOOther_Params = {}
): Promise<Eps.BettingService.GetMYRTOOther> => {
	return http.post(`/BettingService/GetMYRTOOther`, Object.values(data));
};

export const InitCard = (
	data: Eps.BettingService.InitCard_Params = {}
): Promise<Eps.BettingService.InitCard> => {
	return http.post(`/BettingService/InitCard`, Object.values(data));
};

export const GetPoolInfos = (
	data: Eps.BettingService.GetPoolInfos_Params = {}
): Promise<Eps.BettingService.GetPoolInfos> => {
	return http.post(`/BettingService/GetPoolInfos`, Object.values(data));
};

export const GetPostTime = (
	data: Eps.BettingService.GetPostTime_Params = {}
): Promise<Eps.BettingService.GetPostTime> => {
	return http.post(`/BettingService/GetPostTime`, Object.values(data));
};

export const GetRaceUpdateMsgs = (
	data: Eps.BettingService.GetRaceUpdateMsgs_Params = {}
): Promise<Eps.BettingService.GetRaceUpdateMsgs> => {
	return http.post(`/BettingService/GetRaceUpdateMsgs`, Object.values(data));
};

export const GetUpdateInfos = (
	data: Eps.BettingService.GetUpdateInfos_Params = {}
): Promise<Eps.BettingService.GetUpdateInfos> => {
	return http.post(`/BettingService/GetUpdateInfos`, Object.values(data));
};

export const RunAdvanceQueueAutoRun = (
	data: Eps.BettingService.RunAdvanceQueueAutoRun_Params = {}
): Promise<Eps.BettingService.RunAdvanceQueueAutoRun> => {
	return http.post(`/BettingService/RunAdvanceQueueAutoRun`, Object.values(data));
};

export const RunUpdates = (
	data: Eps.BettingService.RunUpdates_Params = {}
): Promise<Eps.BettingService.RunUpdates> => {
	return http.post(`/BettingService/RunUpdates`, Object.values(data));
};

export const RunAward = (
	data: Eps.BettingService.RunAward_Params = {}
): Promise<Eps.BettingService.RunAward> => {
	return http.post(`/BettingService/RunAward`, Object.values(data));
};

export const AdvanceQueueCancel = (
	data: Eps.BettingService.AdvanceQueueCancel_Params = {}
): Promise<Eps.BettingService.AdvanceQueueCancel> => {
	return http.post(`/BettingService/AdvanceQueueCancel`, Object.values(data));
};

export const AdvanceQueueCancelBatch = (
	data: Eps.BettingService.AdvanceQueueCancelBatch_Params = {}
): Promise<Eps.BettingService.AdvanceQueueCancelBatch> => {
	return http.post(`/BettingService/AdvanceQueueCancelBatch`, Object.values(data));
};

export const AdvanceSell = (
	data: Eps.BettingService.AdvanceSell_Params = {}
): Promise<Eps.BettingService.AdvanceSell> => {
	return http.post(`/BettingService/AdvanceSell`, Object.values(data));
};

export const Cancel = (
	data: Eps.BettingService.Cancel_Params = {}
): Promise<Eps.BettingService.Cancel> => {
	return http.post(`/BettingService/Cancel`, Object.values(data));
};

export const GetOrders = (
	data: Eps.BettingService.GetOrders_Params = {}
): Promise<Eps.BettingService.GetOrders> => {
	return http.post(`/BettingService/GetOrders`, Object.values(data));
};

export const Sell = (
	data: Eps.BettingService.Sell_Params = {}
): Promise<Eps.BettingService.Sell> => {
	return http.post(`/BettingService/Sell`, Object.values(data));
};

export const Test = (
	data: Eps.BettingService.Test_Params = {}
): Promise<Eps.BettingService.Test> => {
	return http.post(`/BettingService/Test`, Object.values(data));
};

export const Test1 = (
	data: Eps.BettingService.Test1_Params = {}
): Promise<Eps.BettingService.Test1> => {
	return http.post(`/BettingService/Test1`, Object.values(data));
};

export const GetUSDTTOOTher = (
	data: Eps.BettingService.GetUSDTTOOTher_Params = {}
): Promise<Eps.BettingService.GetUSDTTOOTher> => {
	return http.post(`/BettingService/GetUSDTTOOTher`, Object.values(data));
};

export const AddShoppingCart = (
	data: Eps.BettingService.AddShoppingCart_Params = {}
): Promise<Eps.BettingService.AddShoppingCart> => {
	return http.post(`/BettingService/AddShoppingCart`, Object.values(data));
};

export const DeleteBatchShoppingCart = (
	data: Eps.BettingService.DeleteBatchShoppingCart_Params = {}
): Promise<Eps.BettingService.DeleteBatchShoppingCart> => {
	return http.post(`/BettingService/DeleteBatchShoppingCart`, Object.values(data));
};

export const DeleteShoppingCart = (
	data: Eps.BettingService.DeleteShoppingCart_Params = {}
): Promise<Eps.BettingService.DeleteShoppingCart> => {
	return http.post(`/BettingService/DeleteShoppingCart`, Object.values(data));
};

export const GetShoppingCarts = (
	data: Eps.BettingService.GetShoppingCarts_Params = {}
): Promise<Eps.BettingService.GetShoppingCarts> => {
	return http.post(`/BettingService/GetShoppingCarts`, Object.values(data));
};

export const ShoppingCartBatchSell = (
	data: Eps.BettingService.ShoppingCartBatchSell_Params = {}
): Promise<Eps.BettingService.ShoppingCartBatchSell> => {
	return http.post(`/BettingService/ShoppingCartBatchSell`, Object.values(data));
};

export const UpdateShoppingCartAmount = (
	data: Eps.BettingService.UpdateShoppingCartAmount_Params = {}
): Promise<Eps.BettingService.UpdateShoppingCartAmount> => {
	return http.post(`/BettingService/UpdateShoppingCartAmount`, Object.values(data));
};
